package com.nhii.appframe.di.component;

import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.ActivityScope;
import com.nhii.appframe.di.module.SplashModule;
import com.nhii.appframe.mvp.contract.SplashContract;
import com.nhii.appframe.mvp.ui.activity.SplashActivity;


import dagger.BindsInstance;
import dagger.Component;


/**
 * ================================================
 * author : Alex
 * e-mail : xys9786@outlook.com
 * version: 1.0
 * Description:
 * <p>
 * Created by MVPArmsTemplate on 05/05/2020 08:05
 * ================================================
 */
@ActivityScope
@Component(modules = SplashModule.class, dependencies = AppComponent.class)
public interface SplashComponent {
    void inject(SplashActivity activity);

    @Component.Builder
    interface Builder {
        @BindsInstance
        SplashComponent.Builder view(SplashContract.View view);

        SplashComponent.Builder appComponent(AppComponent appComponent);

        SplashComponent build();
    }
}